#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>
int main()
{
    int a, b;
    scanf("%d%d", &a, &b);
    int n = 0, count = 0;
    while (n <= 31)
    {
        if (((a >> n) & 1) != ((b >> n) & 1))
            count++;
        n++;
    }
    printf("%d", count);
}